package bocchi.card;

import bocchi.base.BaseCustomCard;
import bocchi.BocchiCore;
import bocchi.stance.HeroicStance;
import com.evacipated.cardcrawl.mod.stslib.actions.common.AllEnemyApplyPowerAction;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.DamageAllEnemiesAction;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.powers.VulnerablePower;

public class StrumStorm extends BaseCustomCard {
    private static final String RAW_ID = StrumStorm.class.getSimpleName();
	public static final String GAME_ID = BocchiCore.getGameID(RAW_ID);

    public StrumStorm() {
        super(RAW_ID);
        this.exhaust = true;
    }

    @Override
    public void use(AbstractPlayer player, AbstractMonster monster) {
        addToBot(new AllEnemyApplyPowerAction(player, magicNumber, m -> new VulnerablePower(m, magicNumber, false)));

        if (AbstractDungeon.player.stance.ID.equals(HeroicStance.GAME_ID)) {
            addToBot(new DamageAllEnemiesAction(player, damage, DamageInfo.DamageType.NORMAL, AbstractGameAction.AttackEffect.SMASH));
        }
    }
}
